﻿namespace OpenPms.Services;

public partial class OrderService
{
    public async Task<Guid> AddAccountAsync(TAccount q)
    {
        db.Accounts.Add(q);
        await db.SaveChangesAsync();
        return q.Id;
    }
    public Task<List<TAccount>> QueryAccountAsync(int hotelId, Guid reservationId) =>
        db.Accounts.Where(ii => ii.ReservationId == reservationId && ii.HotelId == hotelId).OrderBy(ii => ii.DT).ToListAsync();
}
